package domain.property;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.concurrent.TimeUnit;

@Getter
@Setter
@ToString
public class DynamicPartition {
  public static final String K_ENABLE = "dynamic_partition.enable";
  public static final String K_TIME_UNIT = "dynamic_partition.time_unit";
  public static final String K_PREFIX = "dynamic_partition.prefix";
  public static final String K_END = "dynamic_partition.end";

  private String column;

  private TimeUnit timeUnit;

  private String prefix;

  private Integer end;

  public enum TimeUnit {
    HOUR, DAY, WEEK, MONTH, YEAR
  }
}
